﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///上架单
    ///</summary>
    [SugarTable("DBO.t_PutawayOrder")]
    public partial class t_PutawayOrder
    {
        public t_PutawayOrder()
        {


        }
        /// <summary>
        /// Desc:上架单Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:上架单号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Code { get; set; }

        /// <summary>
        /// Desc:对应收货单明细Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RelatedOrderDetailId { get; set; }

        /// <summary>
        /// Desc:单据类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BillType { get; set; }

        /// <summary>
        /// Desc:垛存储信息Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int StackingStorageId { get; set; }

        /// <summary>
        /// Desc:垛条码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PalletBarcode { get; set; }

        /// <summary>
        /// Desc:仓位编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? LocationCode { get; set; }

        /// <summary>
        /// Desc:仓位深度
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? LocationDepth { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? FIFODate { get; set; }

        /// <summary>
        /// Desc:状态：1-创建；2-已确定；3-审核成功；4-上架中；5-已完成；
        /// Default:1
        /// Nullable:False
        /// </summary>           
        public int Status { get; set; }

        /// <summary>
        /// Desc:体积
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Volume { get; set; }

        /// <summary>
        /// Desc:重量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Weight { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? QTY { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:创建人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCode { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:货主Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:货主名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:物料关键字Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaterialKeyId { get; set; }

        /// <summary>
        /// Desc:批次号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNO { get; set; }

        /// <summary>
        /// Desc:来源分类：1-入库；2-出库；3-移库；4-盘点
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SourceType { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ParentPalletBarcode { get; set; }

    }
}
